﻿@{
    var captureFields = ViewBag.captureFields as IEnumerable<BillBox.Models.PaymentMethodCaptureField>;
}

@foreach (BillBox.Models.PaymentMethodCaptureField captureField in captureFields)
{
    <div class="form-group">
        <label for="capture-field-@captureField.Name.ToLower()" class="col-sm-5 control-label">@captureField.DisplayName</label>
        <div class="col-sm-7">
            <input type="text" name="CaptureFields[@captureField.Name]" class="form-control" id="capture-field-@captureField.Name.ToLower()" />
        </div>
    </div>
}